﻿@model BootyBay.Models.View_Application

@{
    ViewBag.Title = "View1";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Submit app</h2>
<p>
    You’ve spent hours developing and designing your app, and now it’s time for the rest of the world to experience your masterpiece. In just two steps we’ll gather the information we need to successfully launch your app in the Windows Store. Learn more about the steps for successfully submitting your app.
</p>
<h3>Required</h3>
<div>
    <table>
        <tr>
            <td></td>
            <td>
                @if (Model != null && Model.Id != 0)
                {
                    @Html.ActionLink("App info", "ApplicationInfo", new { id = Model.Id })
                }
                else
                {
                    @Html.ActionLink("App info", "ApplicationInfo")
                }
                <br />
                Reserve an app name, and enter other relevant info.
            </td>
        </tr>
    </table>
    <br />
    <table style="display:none;">
        <tr>
            <td></td>
            <td>
                @if (Model != null && Model.Id != 0)
                {
                    @Html.ActionLink("App history", "AppHistory", new { id = Model.Id });
                }
                else
                {
                    <span>Please publish your application first.</span>
                }
                <br />
                Review historical versions of aplication.
            </td>
        </tr>
    </table>
    <br />
    @if (Model != null && Model.Id != 0)
    {
        if (Model.Status == (int)BootyBay.Models.AppStatus.NotPublished)
        {
            @Html.ActionLink("Publish Application", "PublishApp", new { id = Model.Id });
        }
        if (Model.Status == (int)BootyBay.Models.AppStatus.Published)
        {
            <p style="color:green;">
                Application Published
            </p>
        }
    }
</div>

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
